package cn.edu.glut.entity;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * 
 * @author Caizhfy
 * @email caizhfy@163.com
 * @createTime 2017年12月6日
 * @description 秘书
 *
 */
@Getter
@Setter
@EqualsAndHashCode(callSuper = true, exclude = "major")
@Entity
public class Secretary extends User{
	private static final long serialVersionUID = -2227634083626170490L;
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "major_id")
	private Major major;	//所管专业
}
